import math as mh
def fun(x,y):
    if x>0 and y>0:
        z=mh.log(x+y)
    if x==0 and y==0:
        z=0
    if x<0 and y<0:
        z=(2*x*y)/(mh.fabs(x)+mh.fabs(y))
    return z

while True:
    x=input('请输入x的值')
    if x=='#':
        break
    y=input('请输入y的值')
    x=float(x)
    y=float(y)
    z=fun(x,y)
    print(x,y,z)
    
